package com.xyy.kingdeek3cloud.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class UnitRest {


    @JsonProperty("Result")
    private ResultDTO result;

    @NoArgsConstructor
    @Data
    public static class ResultDTO<T> {
        @JsonProperty("ResponseStatus")
        private ResponseStatusDTO responseStatus;
        @JsonProperty("Result")
        private T result;

        @NoArgsConstructor
        @Data
        public static class ResponseStatusDTO {
            @JsonProperty("IsSuccess")
            private String isSuccess;
        }
    }
}
